home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95c.txt
/
000008_icon-group-sender _Thu Sep 21 16:28:00 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1996-01-03
|
1KB
Received: by cheltenham.cs.arizona.edu; Thu, 21 Sep 1995 16:20:18 MST
Message-Id: <199509212030.QAA12821@transfer.stratus.com>
Date: Thu, 21 Sep 95 16:28 EDT
From: Steve_Graham@vos.stratus.com
To: icon-group@cs.arizona.edu
Cc: Steve_Graham@vos.stratus.com
Subject: Questions on map() and /
Errors-To: icon-group-errors@cs.arizona.edu
I have been using Icon Version 8.8 recently for some file cleanup and
verification and I really enjoy the ease with which it allows me to
accomplish my objectives. I have been able to figure out most of my
questions with the aid of the accompanying documentation and by
reading/posting questions to the newsgroup. questions have to do with the
following code fragment:
# Add line number to citations for word
#
procedure tabulate(word)
/uses[word] := table()
uses[word][lineno] := 1
return
end
# Generate words
#
procedure words()
while line := read() do {
lineno +:= 1
write(right(lineno,6)," ",line)
map(line) ? while tab(upto(&letters)) do {
s := tab(many(&letters))
if *s < 3 then next # skip short words
suspend s
}
}
end
What does the / in /uses mean? What does function does map serve?
Thanks in advance.
Steve Graham
Steve Graham@vos.stratus.com